<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>js基础-css样式控制</title>
  <link rel="stylesheet" href="../css/common.css">
  <link rel="stylesheet" href="css/h04.css">
</head>

<body>

  <!-- class切换的部分 -->
  <div id="divButtons">
    <span id="btn01" class="mybutton">样式一</span>
    <span id="btn02" class="mybutton">样式二</span>
    <span id="btn03" class="mybutton">样式三</span>
  </div>

  <!-- style修改的部分 -->
  <div id="divStyle">
    <span>乐高蝙蝠侠大电影好看</span>
  </div>
  <hr>
  <!-- 一个简单的应用，激活状态切换 -->
  <div class="wx">
    <span id="wx01" class="active">微信</span>
    <span id="wx02">通讯录</span>
    <span id="wx03">发现</span>
    <span id="wx04">我</span>
  </div>


  <script src="js/h04.js"></script>
</body>

</html>